package com.stellar.circle.basic.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 闲置物品交易表(SIdle)实体类
 *
 * @author Jqchan
 * @since 2025-06-07 20:13:38
 */
public class SIdle implements Serializable {
    private static final long serialVersionUID = 392261511267288951L;
    
    /**
     * 闲置物品ID，主键
     */
    private Long id;
    
    /**
     * 发布用户ID（关联user表id）
     */
    private Long userId;
    
    /**
     * 学校ID（关联school表id）
     */
    private Long schoolId;
    
    /**
     * 发布类型：sell-出售/buy-求购
     */
    private String idleType;
    
    /**
     * 物品标题
     */
    private String title;
    
    /**
     * 物品详细描述
     */
    private String description;
    
    /**
     * 物品照片（JSON数组格式存储URL）
     */
    private String images;
    
    /**
     * 物品价格（求购时为期望价格）
     */
    private Double price;
    
    /**
     * 物品分类（如书籍/电子/服饰等）
     */
    private String category;
    
    /**
     * 联系人姓名
     */
    private String contactName;
    
    /**
     * 联系电话
     */
    private String contactPhone;
    
    /**
     * 微信（可选）
     */
    private String contactWechat;
    
    /**
     * 交易地点
     */
    private String transactionPlace;
    
    /**
     * 状态：pending-审核中/published-已发布/completed-已完成/closed-已关闭
     */
    private String idleStatus;
    
    /**
     * 完成时间
     */
    private Date completeTime;
    
    /**
     * 浏览数
     */
    private Integer viewCount;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 创建人
     */
    private String createBy;
    
    /**
     * 修改时间
     */
    private Date updateTime;
    
    /**
     * 修改人
     */
    private String updateBy;
    
    /**
     * 是否删除：1-删除/0-未删除
     */
    private Integer isDeleted;
    


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public String getIdleType() {
        return idleType;
    }

    public void setIdleType(String idleType) {
        this.idleType = idleType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getContactWechat() {
        return contactWechat;
    }

    public void setContactWechat(String contactWechat) {
        this.contactWechat = contactWechat;
    }

    public String getTransactionPlace() {
        return transactionPlace;
    }

    public void setTransactionPlace(String transactionPlace) {
        this.transactionPlace = transactionPlace;
    }

    public String getIdleStatus() {
        return idleStatus;
    }

    public void setIdleStatus(String idleStatus) {
        this.idleStatus = idleStatus;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
}
